Expand description
Some newtype wrappers to help with using ? in main()
The primary items exported by this library are:
-
ExitFailure
: a wrapper aroundfailure::Error
to allow ? printing from main to present a nicer error message, including any available context and backtrace. -
ExitDisplay<E>
: a wrapper aroundE: std::fmt::Display
to allow the error message from main to useDisplay
and notDebug
Basically, these types should only ever be used in the return type for
main()
Structsยง
- A newtype wrapper around
E: std::fmt::Display
- The newtype wrapper around
failure::Error